package com.jxb.lession78.dao;

import com.jxb.lession78.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmpMapper {
    Emp getEmpByUsername(@Param("username") String username);

    List<Emp> getAllEmp();

    List<Emp> getEmpByMap(Map<String, String> map);

    int addEmp(Emp emp);

    Emp getEmpByEno(@Param("eno") int eno);

    int deleteEmp(@Param("eno") int eno);

    int updateEmp(Emp emp);
}
